package chongxin;
import java.util.Scanner;
public class learn1 {
   public int num1;
   public int num2;
   public float num3;
   public float num4;
   public float num5;
   //无参的构造方法
   public learn1(){
   }
   //有参的构造方法
   public learn1(int num1, int num2, float num3, float num4, float num5) {
        this.num1 = num1;
        this.num2 = num2;
        this.num3 = num3;
        this.num4 = num4;
        this.num5 = num5;
    }
    //重载
    public int print(int num1,int num2){
       return num1+num2;
    }
    public double print(double num3,double num4,double num5){
        return num3+num4+num5;
    }
    public static void main(String[] args) {
      Scanner sc=new Scanner(System.in);
        /*learn1 th=new learn1(1,2,2.12f,2.22f,2.32f);
       float count=1+2+2.12f+2.22f+2.32f;
       System.out.println("和为"+count);*/
        learn1 th=new learn1();
      int sum=  th.print(sc.nextInt(),sc.nextInt());//整数相加
        double sum1=th.print(sc.nextDouble(), sc.nextDouble(), sc.nextDouble());
     double count=sum+sum1;
      System.out.println("浮点数的和为"+count);
   }
}

